// Copyright 2012 Google Inc. All Rights Reserved.

package com.google.appengine.syncserver.processor;

/**
 * Using this class one can throw http status as exception.
 */
@SuppressWarnings("serial")
public class HttpException extends Exception {
  private final int httpStatus;

  public HttpException(int httpStatus) {
    this.httpStatus = httpStatus;
  }

  /**
   * Get the http status in the exception.
   * 
   * @return http status stored in the exception.
   */
  public int getHttpStatus() {
    return httpStatus;
  }
}
